package org.twdata.pipeline.stage;

import org.twdata.pipeline.*;

// SAX imports:
import org.xml.sax.SAXException;
import org.xml.sax.ContentHandler;

/**  Swallows the start and end document events. */
public class NoDocumentTransformer extends AbstractTransformer {

    public NoDocumentTransformer() {
        super();
    }

    public NoDocumentTransformer(ContentHandler handler) {
        this.contentHandler = handler;
    }    

    /**
     *  Overrides to take no action
     *
     *@exception  SAXException  If something goes wrong
     */
    public void startDocument()
        throws SAXException {}


    /**
     *  Overrides to take no action
     *
     *@exception  SAXException  If something goes wrong
     */
    public void endDocument()
        throws SAXException { }
}

